﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ERPStore.Tracking.Models
{
	[DataContract]
	public class Visitor
	{
		public Visitor()
		{
			IsNew = false;
		}
		[DataMember]
		public string Id { get; set; }
		[DataMember]
		public string IP { get; set; }
		[DataMember]
		public string UserAgent { get; set; }
		[DataMember]
		public DateTime CreationDate { get; set; }
		[DataMember]
		public string ScreenResolution { get; set; }
		[DataMember]
		public bool IsBlackListed { get; set; }
		[DataMember]
		public string IPCountryName { get; set; }
		[DataMember]
		public string IPCountryCode { get; set; }
		[DataMember]
		public string IPRegionCode { get; set; }
		[DataMember]
		public string IPRegionName { get; set; }
		[DataMember]
		public string IPCity { get; set; }
		[DataMember]
		public double? IPLatitude { get; set; }
		[DataMember]
		public double? IPLongitude { get; set; }
		[DataMember]
		public string IPZipCode { get; set; }
		[IgnoreDataMember]
		public bool IsNew { get; set; }
	}
}
